#!/bin/sh
SUNXI_TOOL_PATH=/home/ggj/Downloads/sunxi-tools/
adb shell mkdir /data/local/tmp/nanda 1>/dev/null
adb shell busybox mount /dev/block/nanda /data/local/tmp/nanda
adb pull /data/local/tmp/nanda/script.bin
${SUNXI_TOOL_PATH}/bin2fex script.bin script.fex
adb shell busybox umount /data/local/tmp/nanda
rm script.bin
